{% extends "base.html" %}

{% block title %}Away List{% endblock %}
{% block heading %}Away List{% endblock %}

{% block leftmenu %}
	<a href='going_away'>I'm going away</a><br/>
	<a href='arrived_home'>I've arrived home</a>
{% endblock %}

{% block content %}
				
		<table>
			<tr class='standard'>
				<th align='left'>Character</th>
				<th align='left'>Time out</th>
				<th align='left'>Activity</th>
				<th align='left'>Location</th>
				<th align='left'>Returning?</th>
			</tr>

		{% for char in awaylist %}
			<tr class="{% cycle odd,even%}">
				<td>{{char.char_name}}</td>
				<td>{{char.away_ts|date:"j F, H:i"}}</td>
				<td>{{char.activity}}</td>
				<td>{{char.location}}</td>
				<td>{{char.returning|yesno:"Yes,No"}}</td>
			</tr>
		{% endfor %}

		</table>

{% endblock %}
